﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;

namespace Efficient.DataAccess
{
    internal interface IQueryParameter : IParameter
    {
        /// <summary>
        /// 表示是否一个字段绑定多个值
        /// </summary>
        bool IsMutilValue { set; get; }
        /// <summary>
        /// 设置值的集合
        /// </summary>
        /// <param name="valueSet"></param>
        void SetValues(IEnumerable valueSet);
        /// <summary>
        /// 转换成IDbDataParameter集合
        /// </summary>
        /// <param name="rawQuery">SQL语句</param>
        /// <returns></returns>
        IDbDataParameter[] ToDbParameter(ref string rawQuery);
    }
}
